home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / news / inn1.000 / inn1.4sec-linux-src.tar / inn / include / nntp.h < prev    next >
Text File  |  1993-03-18  |  4KB  |  122 lines

  1. /*  $Revision: 1.17 $
  2. **
  3. **  Here be a set of NNTP response codes as defined in RFC977 and elsewhere.
  4. **  The reponse codes are three digits, RFI, defined like this:
  5. **    R, Response:
  6. **        1xx    Informative message
  7. **        2xx    Command ok
  8. **        3xx    Command ok so far, send the rest of it.
  9. **        4xx    Command was correct, but couldn't be performed for
  10. **            some reason.
  11. **        5xx    Command unimplemented, or incorrect, or a serious
  12. **            program error occurred.
  13. **    F, Function:
  14. **        x0x    Connection, setup, and miscellaneous messages
  15. **        x1x    Newsgroup selection
  16. **        x2x    Article selection
  17. **        x3x    Distribution functions
  18. **        x4x    Posting
  19. **        x8x    Nonstandard extensions (AUTHINFO, XGTITLE)
  20. **        x9x    Debugging output
  21. **    I, Information:
  22. **        No defined semantics
  23. */
  24. #define NNTP_HELPOK_VAL            100
  25. #define NNTP_BAD_COMMAND_VAL        500
  26. #define NNTP_BAD_COMMAND        "500 Syntax error or bad command"
  27. #define NNTP_TEMPERR_VAL        503
  28. #define NNTP_ACCESS            "502 Permission denied"
  29. #define NNTP_ACCESS_VAL            502
  30. #define NNTP_GOODBYE_ACK        "205"
  31. #define NNTP_GOODBYE_ACK_VAL        205
  32. #define NNTP_GOODBYE            "400"
  33. #define NNTP_GOODBYE_VAL        400
  34. #define NNTP_HAVEIT            "435 Duplicate"
  35. #define NNTP_HAVEIT_BADID        "435 Bad Message-ID"
  36. #define NNTP_HAVEIT_VAL            435
  37. #define NNTP_LIST_FOLLOWS        "215"
  38. #define NNTP_LIST_FOLLOWS_VAL        215
  39. #define NNTP_HELP_FOLLOWS        "100 Legal commands"
  40. #define NNTP_HELP_FOLLOWS_VAL        100
  41. #define NNTP_NOTHING_FOLLOWS_VAL    223
  42. #define NNTP_ARTICLE_FOLLOWS        "220"
  43. #define NNTP_ARTICLE_FOLLOWS_VAL    220
  44. #define NNTP_NEWGROUPS_FOLLOWS_VAL    231
  45. #define NNTP_HEAD_FOLLOWS        "221"
  46. #define NNTP_HEAD_FOLLOWS_VAL        221
  47. #define NNTP_BODY_FOLLOWS_VAL        222
  48. #define NNTP_OVERVIEW_FOLLOWS_VAL    224
  49. #define NNTP_DATE_FOLLOWS_VAL        111
  50. #define NNTP_POSTOK            "200"
  51. #define NNTP_POSTOK_VAL            200
  52. #define NNTP_START_POST_VAL        340
  53. #define NNTP_NOPOSTOK_VAL        201
  54. #define NNTP_SLAVEOK_VAL        202
  55. #define NNTP_REJECTIT_VAL        437
  56. #define NNTP_REJECTIT_EMPTY        "437 Empty article"
  57. #define NNTP_DONTHAVEIT            "430"
  58. #define NNTP_DONTHAVEIT_VAL        430
  59. #define NNTP_RESENDIT_NOHIST        "436 Can't write history"
  60. #define NNTP_RESENDIT_NOSPACE        "436 No space"
  61. #define NNTP_RESENDIT_VAL        436
  62. #define NNTP_POSTEDOK            "240 Article posted"
  63. #define NNTP_POSTEDOK_VAL        240
  64. #define NNTP_POSTFAIL_VAL        441
  65. #define NNTP_GROUPOK_VAL        211
  66. #define NNTP_SENDIT            "335"
  67. #define NNTP_SENDIT_VAL            335
  68. #define NNTP_SYNTAX_USE            "501 Bad command use"
  69. #define NNTP_SYNTAX_VAL            501
  70. #define NNTP_TOOKIT            "235"
  71. #define NNTP_TOOKIT_VAL            235
  72. #define NNTP_NOTINGROUP            "412 Not in a newsgroup"
  73. #define NNTP_NOTINGROUP_VAL        412
  74. #define NNTP_NOSUCHGROUP        "411 No such group"
  75. #define NNTP_NOSUCHGROUP_VAL        411
  76. #define NNTP_NEWNEWSOK            "230 New news follows"
  77. #define NNTP_NOARTINGRP            "423 Bad article number"
  78. #define NNTP_NOARTINGRP_VAL        423
  79. #define NNTP_NOCURRART            "420 No current article"
  80. #define NNTP_NOCURRART_VAL        420
  81. #define NNTP_NONEXT_VAL            421
  82. #define NNTP_NOPREV_VAL            422
  83. #define NNTP_CANTPOST            "440 Posting not allowed"
  84. #define NNTP_CANTPOST_VAL        440
  85.  
  86.  
  87. /*
  88. **  The first character of an NNTP reply can be used as a category class.
  89. */
  90. #define NNTP_CLASS_OK            '2'
  91. #define NNTP_CLASS_ERROR        '4'
  92. #define NNTP_CLASS_FATAL        '5'
  93.  
  94.  
  95. /*
  96. **  The NNTP protocol currently has no way to say "offer me this article
  97. **  later, but don't close the connection."  That will be fixed in NNTP2.
  98. #define NNTP_RESENDIT_LATER        "?"
  99. #define NNTP_RESENDIT_LATER_VAL        ?
  100. */
  101.  
  102.  
  103. /*
  104. **  Authentication commands from the RFC update (not official).
  105. */
  106. #define NNTP_AUTH_NEEDED        "480"
  107. #define NNTP_AUTH_NEEDED_VAL        480
  108. #define NNTP_AUTH_BAD            "481"
  109. #define NNTP_AUTH_NEXT            "381"
  110. #define NNTP_AUTH_NEXT_VAL        381
  111. #define NNTP_AUTH_OK            "281"
  112. #define NNTP_AUTH_OK_VAL        281
  113. #define NNTP_AUTH_REJECT_VAL        482
  114.  
  115. /*
  116. **  XGTITLE, from ANU news.
  117. */
  118. #define NNTP_XGTITLE_BAD        481    /* Yes, 481. */
  119. #define NNTP_XGTITLE_OK            282
  120.  
  121. #define NNTP_STRLEN            512
  122.